package game.page;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

@SuppressWarnings("serial")
public class ApplicationServlet extends HttpServlet {
	private static final Logger logger = Logger
			.getLogger(ApplicationServlet.class);
	private static final String contentType = "text/wml;charset=GBK";
	private static final String charset = "GBK";

	public void init(ServletConfig config) throws ServletException {
		super.init(config);
	}

	protected void service(HttpServletRequest req, HttpServletResponse resp) {
		try {
			// resp.setContentType(contentType);
			// resp.setCharacterEncoding(charset);
			// req.setCharacterEncoding(charset);
			AbstractServlet servlet = new AbstractServlet(req, resp);
			servlet.service();
		} catch (Exception e) {
			logger.info("ApplicationServlet====service====" + e.toString());
			// e.printStackTrace();
		}
		return;
	}

	public void destroy() {

	}
}
